package userbl;

import java.rmi.RemoteException;
import java.util.ArrayList;

import message.Message;

import userDataService.UserDataService;
import userblService.userblService;
import VO.UserVO;
import PO.UserPO;

public class UserController implements userblService{

	@Override
	public UserVO login(UserVO userVO) {
		//userVO.setName("chen");
		//return userVO;
		
		User user=new User();
		try {
			userVO=user.login(userVO);
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return userVO;
	}

	@Override
	public Message changePassword(UserVO userVO) {
		User user=new User();
		Message message=null;
		try {
			message=user.changePassword(userVO);
		} catch (RemoteException e) {
			e.printStackTrace();
		}
		return message;
	}

}
